<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html>
<head>
    <title>商品列表</title>
    <meta name="decorator" content="default"/>
    <script type="text/javascript">
        function page(n, s) {
            $("#pageNo").val(n);
            $("#pageSize").val(s);
            $("#searchForm").attr("action", "${ctx}/sys/overseas/showOverSeasProductList");
            $("#searchForm").submit();
            return false;
        }
    </script>
</head>
<body>
<ul class="nav nav-tabs">
    <li class="active"><a href="${ctx}/sys/overseas/showOverSeasProductList">海外商品列表</a></li>
   <li><a href="${ctx}/sys/overseas/form?sort=10">海外商品添加</a></li>
</ul>
<form:form id="searchForm" modelAttribute="tbProduct" action="${ctx}/sys/overseas/showOverSeasProductList"
           method="post" class="breadcrumb form-search">
    <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
    <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
    <label>商品名称：</label><form:input path="title" htmlEscape="false" maxlength="50" class="input-medium"/>
    &nbsp;<input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/>
</form:form>
<sys:message content="${message}"/>
<span><font style="color: #00A6C7">${message1}</font></span>
<table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead>
        <tr>
            <th>商品标题</th>
            <th>条形码</th>
            <th>属性</th>
            <th>单位</th>
          <%--  <th>是否维护库存</th>
            <th>库存</th>--%>
           <%-- <th>是否可用物业钱包</th>--%>
          <%--  <th>是否预定</th>--%>
            <th>创建时间</th>
            <th>操作</th>
        </tr>
    </thead>
    <tbody>
    <c:forEach items="${page.list}" var="tbProduct">
        <tr>
            <td>
                <a href="${ctx}/sys/overseas/form?id=${tbProduct.id}" title="${tbProduct.title}" >
                        ${fn:substring(tbProduct.title, 0,10)}
                </a>

            </td>
            <%--<td>${tbProduct.sellPoint}</td>--%>
           <%-- <td>${tbProduct.wholesalePrice}</td>--%>
         <%--   <td>${tbProduct.proSort}</td>--%>
            <td>${tbProduct.barcode}</td>
            <td>
                <c:forEach items="${tbProduct.tbshopProductList}" var="attr">
                   属性： ${attr.color}&nbsp;&nbsp;
                    货号： ${attr.productSize}&nbsp;&nbsp;
                    单价：${attr.price}&nbsp;&nbsp;
                    <br/>
                </c:forEach>
            </td>
            <td>
                    ${tbProduct.size}&nbsp;&nbsp;
            </td>

            <%--<td>${tbProduct.num}</td>--%>
          <%--  <td><c:if test="${tbProduct.isMaintainStoreNum==0}">否</c:if><c:if test="${tbProduct.isMaintainStoreNum==1}">是</c:if></td>--%>
            <%--<td><c:if test="${tbProduct.isUseMqWallet==0}">否</c:if><c:if test="${tbProduct.isUseMqWallet==1}">是</c:if></td>--%>
         <%--   <td><c:if test="${tbProduct.reserveFlag==0}">否</c:if><c:if test="${tbProduct.reserveFlag==1}">是</c:if></td>--%>
            <td>
                <fmt:formatDate value="${tbProduct.createTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
            </td>
            <td>
                <a href="${ctx}/sys/overseas/form?id=${tbProduct.id}">修改</a>
                <a href="${ctx}/sys/overseas/delete?id=${tbProduct.id}" onclick="return confirmx('确认要删除该商品吗？', this.href)">删除</a>
            </td>

        </tr>
    </c:forEach>
    </tbody>
</table>
<div class="pagination">${page}</div>
</body>
</html>
